﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

using Com.Web.coffinegurunaru.AppLogic.Page;
using Com.Library.DB.Event;
using Com.Framework;
using Com.Framework.Data;

namespace Com.Web.coffinegurunaru.whatsnew
{
	public partial class _event : WebPage
	{
		protected List<EventEntity> EventList { get; set;}
		protected int PageNo { get; set;}
		protected byte PageSize { get{ return 6; } }
		protected int CntTotal { get; set;}
		protected void Page_Load(object sender, EventArgs e)
		{
			this.LeftMenuType = 1;

			PageNo = Request["pageno"].Parse(1);

			ListData<EventEntity, OutputEntity> Result = EventModel.GetList(false, true, PageNo, PageSize);
			EventList = Result.Record;

			UC_Paging.TotalCount = Result.Output.CntTotal;
			UC_Paging.PageName = "PageNo";
			UC_Paging.PageNo = PageNo;
			UC_Paging.PageSize = PageSize;
			UC_Paging.Query = "";
		}
	}
}
